<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="st" tagdir="/WEB-INF/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="j" uri="j/tags" %>
<%@ taglib prefix="joyi" uri="http://www.joyi.cn/tags" %>

<st:page title="查询预览">
    <div data-options="region:'center'">
        <%--<c:if test="${empty qmd}">
            <div>此查询未定义</div>
        </c:if>
        <c:if test="${not empty qmd}">
            <table id="dg" style="width:100%;" data-options="
                    url:'/user/sys/qmdManager?act=q&queryId=${qmd.queryId}',fit:true,
                    <c:if test="${qmd.footerSupported}">showFooter:true,</c:if>
                    <c:if test="${qmd.pagingSupported}">pagination:true,</c:if>
                    singleSelect:true">
                <c:if test="${qmd.operatorSupported}">
                    <thead data-options="frozen:true">
                        <tr><th data-options="field:'opt'">操作</th></tr>
                    </thead>
                </c:if>
                <thead>
                    <tr>
                        <c:forEach var="item" items="${qmd.fieldMetadataList}">
                            <c:if test="${not item.suppressible}">
                                <th data-options="field:'${item.fieldId}',sortable:${item.sortSupported}">${item.displayName}</th>
                            </c:if>
                        </c:forEach>
                    </tr>
                </thead>
            </table>
            <script>
                $("#dg").datagrid({}).datagrid("columnMoving");
            </script>
        </c:if>--%>
        <joyi:dataGrid id="dg" key="${p.queryId}"/>
    </div>
</st:page>